package org.distributed.transaction.core.adapter;

import org.distributed.transaction.core.context.TransactionContext;
import org.distributed.transaction.core.exception.TransactionException;

public interface TransactionGroupTarget {

	/**
	 * 创建事务组
	 * 
	 * @param transactionContext
	 */
	public void createGroup(TransactionContext transactionContext) throws TransactionException;

	/**
	 * 加入事务组
	 * 
	 * @param transactionContext
	 */
	public void joinGroup(TransactionContext transactionContext) throws TransactionException;

	/**
	 * 通知事务组
	 */
	public void notifyGroup(TransactionContext transactionContext) throws TransactionException;
}
